package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 goods
 * 
 * @author ruoyi
 * @date 2023-12-23
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long goodID;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodName;

    /** 商品进价 */
    @Excel(name = "商品进价")
    private BigDecimal purchPrice;

    /** 商品售价 */
    @Excel(name = "商品售价")
    private BigDecimal sellPrice;

    /** 商品照片 */
    @Excel(name = "商品照片")
    private String goodImg;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String goodinfo;

    /** 商品类别 */
    @Excel(name = "商品类别")
    private Long typeId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long num;

    /** 分类名信息 */
    private List<Type> typeList;

    public void setGoodID(Long goodID) 
    {
        this.goodID = goodID;
    }

    public Long getGoodID() 
    {
        return goodID;
    }
    public void setGoodName(String goodName) 
    {
        this.goodName = goodName;
    }

    public String getGoodName() 
    {
        return goodName;
    }
    public void setPurchPrice(BigDecimal purchPrice) 
    {
        this.purchPrice = purchPrice;
    }

    public BigDecimal getPurchPrice() 
    {
        return purchPrice;
    }
    public void setSellPrice(BigDecimal sellPrice) 
    {
        this.sellPrice = sellPrice;
    }

    public BigDecimal getSellPrice() 
    {
        return sellPrice;
    }
    public void setGoodImg(String goodImg) 
    {
        this.goodImg = goodImg;
    }

    public String getGoodImg() 
    {
        return goodImg;
    }
    public void setGoodinfo(String goodinfo) 
    {
        this.goodinfo = goodinfo;
    }

    public String getGoodinfo() 
    {
        return goodinfo;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }

    public List<Type> getTypeList()
    {
        return typeList;
    }

    public void setTypeList(List<Type> typeList)
    {
        this.typeList = typeList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodID", getGoodID())
            .append("goodName", getGoodName())
            .append("purchPrice", getPurchPrice())
            .append("sellPrice", getSellPrice())
            .append("goodImg", getGoodImg())
            .append("goodinfo", getGoodinfo())
            .append("typeId", getTypeId())
            .append("num", getNum())
            .append("typeList", getTypeList())
            .toString();
    }
}
